package cn.xydpeng.springframework.beans.factory.config;

/**
 * @author xydpeng
 * @version v1.0
 * @date: 2022/10/12
 * @description:
 */
public interface SingletonBeanRegistry {

    void registerSingleton(String beanName, Object singletonObject);

    Object getSingleton(String beanName);

    boolean containsSingleton(String beanName);
    /**
     * Return the singleton mutex used by this registry (for external collaborators).
     * @return
     */
    Object getSingletonMutex();


}
